<!DOCTYPE html>
<html lang="zh_cn" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" th:href="@{/css/sendMail.css}">
    <link rel="icon" th:href="@{/image/1.png}" sizes="16x16">
    <title>发送邮件</title>
</head>
<body>
    <div id="mail">  
        <h1>发送邮件</h1>  
        <div ><span class="msg" th:text="${msg}"></span><a th:href="@{/index}"  class="fanhuei">返回主页</a></div>
        <form th:action="@{/mail/snedMail}" method="post">
            <div><span class="text">标题：</span><input type="text" required="required" placeholder="标题" name="subject"></input></div>  
            <div><span class="text">内容：</span><input type="text" required="required" placeholder="内容" name="text"></input></div>  
            <div><span class="text">接受者邮箱：</span><input type="email" required="required" placeholder="接受者邮箱" name="to"></input></div>  
            <div><span class="text">发送者邮箱：</span><input type="email" required="required" placeholder="发送者邮箱" name="from" value="2505295537@qq.com"></input></div>
            <button class="but" type="submit">发送</button>  
        </form>  
    </div>  
</body>
</html>